// 处理同名（静态）成员（函数）
#include <iostream>
using namespace std;
class Father {
public:
    int m_a = 50;
    void func() {
        cout << "Father::func()" << endl;
    }
    void func(int a) {
        cout << "Father::func(int a)" << endl;
    }
    static int m_b;
};
int Father::m_b = 100;
class Son: public Father {
public:
    int m_a = 20;
    void func() {
        cout << "Son::func()" << endl;
    }
    static int m_b;
};
int Son::m_b = 40;
void test1() {
    Son s1;
    cout << "s1.m_a = " << s1.m_a << endl;
    cout << "s1.Father::m_a = " << s1.Father::m_a << endl;
    s1.func();
    s1.Father::func();
    s1.Father::func(100);
}
void test2() {
    Son s2;
    cout << s2.m_b << endl;
    cout << Son::m_b << endl;
    cout << Son::Father::m_b << endl;
}
int main(void) {
    test1();
    test2();

    return 0;
}